//引入axios核心文件
import axios from "axios";
//创建实例对象
const instance = axios.create({
  baseURL:'http://localhost:8081',
  timeout:5000
});
//请求拦截器
instance.interceptors.request.use(config=>{
  return config;
});
//响应拦截器
instance.interceptors.response.use(res=>{
  return res;
},error => {

});
//暴露默认实例
export default instance;
